package com.party.domain;

import java.util.Date;

/**
 * 
 * @author Caizhf
 * @date 2017年7月25日下午2:57:09
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: 流水账/实际支付对象</p>
 *
 */
public class CurrentAccount {
	
	private Integer caid;
	private String allOrderNum;				//总订单号（所有购买的商品）
	private Date createTime;				//创建时间
	private String tradeNo;					//支付宝或者微信支付的单号
	private Integer payWay;					//支付方式（支付宝为0，微信为1）
	private Double totalAmount;				//需要付款的总金额
	private String subject;					//趣聚会订单
	private Integer status;					//支付状态，0为未支付，1为已支付，2为已完成
	private String buyerLogonId;			//买家支付宝/微信号
	private String allRefundFee;				//退款总金额
	private Date gmtPayment;				//付款时间
	private Date gmtRefund;					//退款时间
	public static final Integer UN_PAY = 0;				//未支付
	public static final Integer PAY_SUCCESS = 1;		//已支付
	public static final Integer PAY_FINISHED = 2;		//支付已完成（退款或者没有退款结束的一种状态）
	public static final Integer TRADE_FINISHED = 3;		//在本站的订单已完成
	public static final String SUBJECT = "欢聚网商品订单";
	private User user;						//付款当前的session用户
	
	
	public CurrentAccount(){
		super();
	}
	public CurrentAccount(Integer caid, String allOrderNum, Date createTime, String tradeNo, Integer payWay,
			Double totalAmount, String subject, Integer status, User user) {
		super();
		this.caid = caid;
		this.allOrderNum = allOrderNum;
		this.createTime = createTime;
		this.tradeNo = tradeNo;
		this.payWay = payWay;
		this.totalAmount = totalAmount;
		this.subject = subject;
		this.status = status;
		this.user = user;
	}

	
	public String getAllRefundFee() {
		return allRefundFee;
	}
	public void setAllRefundFee(String allRefundFee) {
		this.allRefundFee = allRefundFee;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getBuyerLogonId() {
		return buyerLogonId;
	}
	public void setBuyerLogonId(String buyerLogonId) {
		this.buyerLogonId = buyerLogonId;
	}
	public Integer getCaid() {
		return caid;
	}
	
	public Date getGmtPayment() {
		return gmtPayment;
	}
	public void setGmtPayment(Date gmtPayment) {
		this.gmtPayment = gmtPayment;
	}
	public Date getGmtRefund() {
		return gmtRefund;
	}
	public void setGmtRefund(Date gmtRefund) {
		this.gmtRefund = gmtRefund;
	}
	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public void setCaid(Integer caid) {
		this.caid = caid;
	}
	public String getAllOrderNum() {
		return allOrderNum;
	}
	public void setAllOrderNum(String allOrderNum) {
		this.allOrderNum = allOrderNum;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getTradeNo() {
		return tradeNo;
	}
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	public Integer getPayWay() {
		return payWay;
	}
	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}
	public Double getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public String toString() {
		return "CurrentAccount [caid=" + caid + ", allOrderNum=" + allOrderNum + ", createTime=" + createTime
				+ ", tradeNo=" + tradeNo + ", payWay=" + payWay + ", totalAmount=" + totalAmount + ", subject="
				+ subject + ", status=" + status + ", user=" + user + "]";
	}
	
}
